package com.ssyt.hiring.web.action;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.ssyt.hiring.entity.CompanyEntity;
import com.ssyt.hiring.web.service.CompanyService;

@Controller
@Scope("prototype")
public class CompanyAction {
	@Autowired
	private CompanyService companySevice;
	@Autowired
	private CompanyEntity company;
	
	public String toRegisterUI(){
		return "toRegisterUI";
	}
	public String register()
	{
		companySevice.companyregister(company);
		return "company-login";
	}
	public CompanyService getCompanySevice() {
		return companySevice;
	}
	public void setCompanySevice(CompanyService companySevice) {
		this.companySevice = companySevice;
	}
	public CompanyEntity getCompany() {
		return company;
	}
	public void setCompany(CompanyEntity company) {
		this.company = company;
	}
	
	

}
